package com.beta.mq.redis.enums;

public enum PageEnum {

    DIAGNOSE("1", "组合诊断"),
    BILL("2", "收益账单"),
    WEALTH2C("3", "对客财富阶梯"),
    PRIVATESHELT("4", "私行货架");

    private String code;
    private String name;

    PageEnum(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public String getCode() {
        return this.code;
    }

    public String getName(){
        return this.name;
    }


    public static String getPageNameByCode(String pageCode){
        for (PageEnum pageEnum : values()){
            if (pageEnum.getCode().equals(pageCode)){
                return pageEnum.getName();
            }
        }
        return null;
    }
}
